package com.home.entity;

public class Student{
    private int id;
    private String user_name;
    private String QQ;
    private String stu_type;
    private String join_date;
    private String school;
    private int student_num;
    private String url;
    private String hope;
    private String bro;
    private String know_where;
    private long creat_at;
    private long update_at;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Student student = (Student) o;
        return user_name.equals(student.user_name);
    }

    @Override
    public int hashCode() {
        return user_name.hashCode();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getQQ() {
        return QQ;
    }

    public void setQQ(String QQ) {
        this.QQ = QQ;
    }

    public String getStu_type() {
        return stu_type;
    }

    public void setStu_type(String stu_type) {
        this.stu_type = stu_type;
    }

    public String getJoin_date() {
        return join_date;
    }

    public void setJoin_date(String join_date) {
        this.join_date = join_date;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public int getStudent_num() {
        return student_num;
    }

    public void setStudent_num(int student_num) {
        this.student_num = student_num;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getHope() {
        return hope;
    }

    public void setHope(String hope) {
        this.hope = hope;
    }

    public String getBro() {
        return bro;
    }

    public void setBro(String bro) {
        this.bro = bro;
    }

    public String getKnow_where() {
        return know_where;
    }

    public void setKnow_where(String know_where) {
        this.know_where = know_where;
    }

    public long getCreat_at() {
        return creat_at;
    }

    public void setCreat_at(long creat_at) {
        this.creat_at = creat_at;
    }

    public long getUpdate_at() {
        return update_at;
    }

    public void setUpdate_at(long update_at) {
        this.update_at = update_at;
    }

    public Student(int id, String user_name, String QQ, String stu_type,
                    String join_date, String school, int student_num, String url,
                    String hope, String bro, String know_where, long creat_at, long update_at) {
        this.id = id;
        this.user_name = user_name;
        this.QQ = QQ;
        this.stu_type = stu_type;
        this.join_date = join_date;
        this.school = school;
        this.student_num = student_num;
        this.url = url;
        this.hope = hope;
        this.bro = bro;
        this.know_where = know_where;
        this.creat_at = creat_at;
        this.update_at = update_at;

    }
    public Student(){

    }
    @Override
    public String toString() {
        return "Students{" +
                "id=" + id +
                ", user_name='" + user_name + '\'' +
                ", QQ='" + QQ + '\'' +
                ", stu_type='" + stu_type + '\'' +
                ", join_date='" + join_date + '\'' +
                ", school='" + school + '\'' +
                ", student_num=" + student_num +
                ", url='" + url + '\'' +
                ", hope='" + hope + '\'' +
                ", bro='" + bro + '\'' +
                ", know_where='" + know_where + '\'' +
                ", creat_at=" + creat_at +
                ", update_at=" + update_at +
                '}';
    }
}
